package com.dell.xiaodaiyu.demo.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
 /**
     * @Author dell
     * @Description //TODO 
     * @Date 22:33 2018/11/12
     * @ClassName HttpConfig
     * @Version  V1,0
  **/
@Configuration
public class HttpConfig {

    @Autowired
    private RestTemplateBuilder restTemplateBuilder;

    @Bean
    public RestTemplate restTemplate(){
        return restTemplateBuilder.build();
    }
}
